<%-- 
    Document   : notlar
    Created on : 06.May.2012, 21:06:10
    Author     : kalemsel
--%>
<%@page import="siniflar.Ortak"%>
<%@ page import="java.util.ArrayList" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<jsp:useBean id="ogrenci" class="siniflar.Ogrenci" scope="session" />
<jsp:useBean id="notlar" type="ArrayList<ArrayList<siniflar.DersOgrenci>>" scope="session" />

<jsp:include page="../ek_bas.jsp" />
<title>Notlarım</title>
<jsp:include page="ek_menu.jsp" />
<h1 class="icbaslik notlaricon">Notlarım</h1>
    
<%
    int j = 0;
    for(int i=0; i<notlar.size(); i++){
        j = 0;

        out.print("<table>");
            // donem
            out.print("<tr class=\"tablobaslik\">");
                out.print("<td colspan=\"5\" class=\"ortali altkenarlikli\">"+notlar.get(i).get(j).getDonem().getAciklama() +"</td>");     
            out.print("</tr>");
            //basliklar
            out.print("<tr class=\"tablobaslik\">");
                out.print("<td class=\"altkenarlikli\">Ders Kodu</td>");
                out.print("<td class=\"altkenarlikli\">Ders Adı</td>");
                out.print("<td class=\"altkenarlikli\">Ders Kredi</td>");
                out.print("<td class=\"altkenarlikli\">Ders Notu</td>");
                out.print("<td class=\"altkenarlikli\">Geçme Durumu</td>");
            out.print("</tr>");
            // icerik
            for(j=0; j<notlar.get(i).size(); j++){
                out.print("<tr class=\"r"+(j%2)+"\">");
                    out.print("<td>" + notlar.get(i).get(j).getDers().getDersKodu() + "</td>");
                    out.print("<td>" + notlar.get(i).get(j).getDers().getDersAdi() + "</td>");
                    out.print("<td>" + notlar.get(i).get(j).getDers().getDersKredi() + "</td>");
                    out.print("<td>" + notlar.get(i).get(j).getDersNotu() + "</td>");
                    out.print("<td>" + notlar.get(i).get(j).getBasariDurumuStr() + "</td>");
                out.print("</tr>");
            }

            out.print("</table>");
    }

%>

<div class="normalyazi dahaasagida">* : Seminer dersi</div>
<jsp:include page="../ek_son.jsp" />